import config from "@/config"

//系统路由
const routes = [
	{
		path: "/",
		component: () => import(/* webpackChunkName: "login" */ '@/views/weComLogin/index'),
		meta: {
			title: "身份识别"
		}
	},
	{
		name: "layout",
		path: "/layout",
		component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
		redirect: config.DASHBOARD_URL || '/dashboard',
		children: []
	},
	{
		path: "/login",
		component: () => import(/* webpackChunkName: "login" */ '@/views/login'),
		meta: {
			title: "登录"
		}
	},
	{
		path: "/user_register",
		component: () => import(/* webpackChunkName: "userRegister" */ '@/views/login/userRegister'),
		meta: {
			title: "注册"
		}
	},
	{
		path: "/reset_password",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/resetPassword'),
		meta: {
			title: "重置密码"
		}
	},

	// 自由页面

	{
		path: "/free",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/free/index'),
		meta: {
			title: "明细"
		}
	},
	{
		path: "/free1",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/free/index1'),
		meta: {
			title: "明细"
		}
	},
	{
		path: "/wangfang1",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/free/wangfang1'),
		meta: {
			title: "明细"
		}
	},
	{
		path: "/demo",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/free/demo'),
		meta: {
			title: "demo"
		}
	},
	{
		path: "/gongzi",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/gongzi/shouye'),
		meta: {
			title: "明细"
		}
	},
	{
		path: "/gongzi_zhanshi",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/gongzi/zhanshi'),
		meta: {
			title: "明细"
		}
	},
	{
		path: "/seal_maintenance_index",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/seal_maintenance/index'),
		meta: {
			title: "明细"
		}
	},
]

export default routes;
